'use strict';

angular.module('myApp.view2', ['ngRoute', 'myApp.service1', 'myApp.factory1', 'myApp.provide_factory'])
.controller('View2Ctrl', ['$rootScope', '$scope', 'view2Service', 'service1_1', 'factory1_1', 'provide_factory_1', 
	function($rootScope, $scope, view2Service, service1_1, factory1_1, provide_factory_1) {

	// console.log('myApp.view2')
	$rootScope.rootScope = 'rootScope'
	$scope.label = view2Service.testName;
	$scope.service1_1 = service1_1.testName
	$scope.factory1_1 = factory1_1('factory传入参数')
	$scope.provide_factory_1 = provide_factory_1('provide_factory_1传入参数')
	$scope.clickLabelFlag = true
	$scope.mouseenter = function() {
	$scope.clickLabelFlag = false
	}
	$scope.mouseleave = function() {
		$scope.clickLabelFlag = true
	}

}])
.service('view2Service' ,function(){
　　this.testName = '我是文字';

});